{layout name="layout/default" /}
<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        <div class="panel-lead"><em>{$nav_title.title}</em>{$nav_title.remark}</div>
        <ul class="nav nav-tabs">
         {volist name="list_menu" id="item"}
            <li {eq name="key" value="$id"}class="active"{/eq}><a href="#tab_{$key}" data-toggle="tab">{$item}</a></li>
         {/volist}   
        </ul>
    </div>
<div class="panel-body">  
<form id="edit-form" class="edit-form form-horizontal" role="form" data-toggle="validator" method="post" action="{:admin_url('admin/config/up')}">
<div id="myTabContent" class="tab-content">
{volist name="list" id="vo"}
<div class="tab-pane fade {eq name="key" value="1"}active in{/eq} " id="tab_{$key}">
                <div class="widget-body no-padding">
                       <table id="table" class="table table-striped table-bordered table-hover" style="margin-top: 0px;" width="100%">
                            <thead>
                                <tr height="50px;">
                                    <th width="18%">设置名称：</th>
                                    <th width="82%">设置内容：</th>
                                </tr>
                            </thead>
                            <tbody>
        {volist name="vo" id="item"} 
        {eq name="item['status']" value="1"} 
        {eq name="item['name']" value="player_api"}
        {neq name=":config('zanpiancms.ad')"}
        <tr {if isset($item['other'])} id="{$item['other']}"{/if}>
        <td class="config" colspan="2">
            {:config('zanpiancms.ad')}
             </td>
          </tr>  
          {/neq}   
        {/eq}
                                <tr {if isset($item['other'])} id="{$item['other']}"{/if}>
                                    <td>{neq name="item['type']" value="tags"}{$item['title']}：{/neq}</td>
                                    <td>
                                        <div class="row">
            {switch name="item['type']"}
            {case value="password"}
            <div class="col-sm-6 col-xs-12 {$item['name']}">
            <input type="password" name="config[{$item['name']}]" id="config[{$item['name']}]" value="{$item['value']}" class="form-control" data-tip="{$item.remark}">
            </div>
            {/case}        
			{case value="text"}
            <div class="col-sm-6 col-xs-12 {$item['name']}">
            <input type="text" name="config[{$item['name']}]" id="config[{$item['name']}]" value="{$item['value']}" placeholder="{$item['title']}" class="form-control" data-tip="{$item.remark}">
            </div>
            {/case}
            {case value="num"}
            <div class="col-sm-6 col-xs-12 {$item['name']}">
			<input type="text"  name="config[{$item['name']}]" id="config[{$item['name']}]" value="{$item['value']}" placeholder="{$item['title']}"  class="form-control" data-tip="{$item.remark}">
            </div>
			{/case}
            {case value="string"}
            <div class="col-sm-6 col-xs-12 {$item['name']}">
			<input type="text"  name="config[{$item['name']}]" id="config[{$item['name']}]" value="{$item['value']}" placeholder="{$item['title']}"  class="form-control" data-tip="{$item.remark}">
            </div>
			{/case}       
  			{case value="textarea"}
            {eq name="item['name']" value="user_rewrite_route"}
            <div class="col-xs-12 {$item['name']}">
			<textarea  name="config[{$item['name']}]" id="config[{$item['name']}]"  class="form-control" rows="15" style="font-size:14px;">{$item['value']}</textarea>
            </div>
            {else/}
            <div class="col-sm-6 col-xs-12 {$item['name']}">
			<textarea  name="config[{$item['name']}]" id="config[{$item['name']}]"  class="form-control" rows="5" data-tip="{$item.remark}">{$item['value']}</textarea>
            </div>            
            {/eq} 
			{/case}  
  			{case value="notextarea"}
            <div class="col-sm-6 col-xs-12 {$item['name']}">
			<textarea  name="config[{$item['name']}]" id="config[{$item['name']}]"  class="form-control" rows="5" data-tip="{$item.remark}">{$item['value']}</textarea>
            </div>
			{/case}                        
			{case value="select"}
            <div class="col-xs-12" style="width:auto;min-width:100px; text-align:center">
			<select  name="config[{$item['name']}]" id="config[{$item['name']}]" class="form-control" data-tip="{$item.remark}">
			{volist name=":parse_config_attr($item['extra'])" id="vo"}
			<option value="{$key}" {eq name="item['value']" value="$key"}selected{/eq}>{$vo}</option>
			{/volist}
			</select>
            </div>
			{/case}            
			{case value="bool"}
            <div class="col-xs-12" style="width:auto;min-width:100px; text-align:center">
			<select name="config[{$item['name']}]" id="config[{$item['name']}]" class="form-control" data-tip="{$item.remark}">
			{volist name=":parse_config_attr($item['extra'])" id="vo"}
			<option value="{$key}" {eq name="item['value']" value="$key"}selected{/eq}>{$vo}</option>
			{/volist}
			</select>
            </div>
			{/case}
 			{case value="pctheme"}
            <div class="col-xs-12" style="width:auto;min-width:100px; text-align:center">
			<select name="config[{$item['name']}]" id="config[{$item['name']}]" class="form-control" data-tip="{$item.remark}">
			{if isset($homedir)}{volist name="homedir" id="admin"}<option value="{$admin.filename}" {eq name="admin.filename" value="$item['value']"}selected{/eq}>{$admin.filename}</option>{/volist}{/if}
			</select>
            </div>
			{/case} 
  			{case value="mobiletheme"}
            <div class="col-xs-12" style="width:auto;min-width:100px; text-align:center">
			<select name="config[{$item['name']}]" id="config[{$item['name']}]" class="form-control" data-tip="{$item.remark}">
			{if isset($homedir)}{volist name="homedir" id="admin"}<option value="{$admin.filename}" {eq name="admin.filename" value="$item['value']"}selected{/eq}>{$admin.filename}</option>{/volist}{/if}
			</select>
            </div>
			{/case}              
 			{case value="usertheme"}
            <div class="col-xs-12" style="width:auto;min-width:100px; text-align:center">
			<select name="config[{$item['name']}]" id="config[{$item['name']}]" class="form-control" data-tip="{$item.remark}">
			{if isset($userdir)}{volist name="userdir" id="admin"}<option value="{$admin.name}" {eq name="admin.name" value="$item['value']"}selected{/eq}>{$admin.name}</option>{/volist}{/if}
			</select>
            </div>
			{/case}         
 			{case value="html"}
            <div class="col-xs-12" style="width:auto;min-width:100px; text-align:center">
		    {eq name="item['name']" value="url_cache_on"}
 			<select  name="config[{$item['name']}]" id="config[{$item['name']}]" class="form-control" data-tip="{$item.remark}">
			{volist name=":parse_config_attr($item['extra'])" id="vo"}
			<option value="{$key}" {eq name="item['value']" value="$key"}selected{/eq}>{$vo}</option>
			{/volist}
			</select>           
            {/eq}  
 		    {eq name="item['name']" value="html_cache_on"}
 			<select  name="config[{$item['name']}]" id="config[{$item['name']}]" class="form-control" data-tip="{$item.remark}">
			{volist name=":parse_config_attr($item['extra'])" id="vo"}
			<option value="{$key}" {eq name="item['value']" value="$key"}selected{/eq}>{$vo}</option>
			{/volist}
			</select>           
            {/eq}            
		    {eq name="item['name']" value="url_rewrite"}
 			<select  name="config[{$item['name']}]" id="config[{$item['name']}]" class="form-control" data-tip="{$item.remark}">
			{volist name=":parse_config_attr($item['extra'])" id="vo"}
			<option value="{$key}" {eq name="item['value']" value="$key"}selected{/eq}>{$vo}</option>
			{/volist}
			</select>           
            {/eq} 			
		    {eq name="item['name']" value="upload_water"}
 			<select  name="config[{$item['name']}]" id="config[{$item['name']}]" class="form-control" data-tip="{$item.remark}">
			{volist name=":parse_config_attr($item['extra'])" id="vo"}
			<option value="{$key}" {eq name="item['value']" value="$key"}selected{/eq}>{$vo}</option>
			{/volist}
			</select>           
            {/eq}
		    {eq name="item['name']" value="upload_ftp"}
 			<select  name="config[{$item['name']}]" id="config[{$item['name']}]" class="form-control" data-tip="{$item.remark}">
			{volist name=":parse_config_attr($item['extra'])" id="vo"}
			<option value="{$key}" {eq name="item['value']" value="$key"}selected{/eq}>{$vo}</option>
			{/volist}
			</select>           
            {/eq} 
            {eq name="item['name']" value="upload_thumb"}
 			<select  name="config[{$item['name']}]" id="config[{$item['name']}]" class="form-control" data-tip="{$item.remark}">
			{volist name=":parse_config_attr($item['extra'])" id="vo"}
			<option value="{$key}" {eq name="item['value']" value="$key"}selected{/eq}>{$vo}</option>
			{/volist}
			</select>           
            {/eq} 
             {eq name="item['name']" value="player_http"}
 			<select  name="config[{$item['name']}]" id="config[{$item['name']}]" class="form-control"  data-tip="{$item.remark}">
			{volist name=":parse_config_attr($item['extra'])" id="vo"}
			<option value="{$key}" {eq name="item['value']" value="$key"}selected{/eq}>{$vo}</option>
			{/volist}
			</select>           
            {/eq} 
            </div>             
			{/case}                   
            {/switch} 
              <div class="col-sm-4"></div>
              </div>
              </td>
              </tr>
              {/eq}
           {/volist}
                </tbody>
          </table>
          </div>
         </div>
        {/volist}
</div>
    </div>      
</div>
<div class="layui-layer-btn layui-layer-footer">
<div class="row"><div class="col-xs-2"></div><div class="col-xs-12 col-sm-6">
            <button type="submit" class="btn btn-success btn-embossed">确定</button>
            <button type="reset" class="btn btn-default btn-embossed">重置</button>
            <button onClick="javascript:history.back(-1);return false;" class="btn btn-danger">返回</button>
        </div></div>
        </div>
  </form>      
</div>